#!/bin/bash

if [ -e target ]; then
	rm -rf target
fi

mkdir target

# compile
javac  src/java/foo/Test1.java -d target/

# package jar add .class, .properties 
# c=create v=verbose f= specifies the jar file name, e=executable jar
jar cvfe abc.jar \
foo.Test1 \
-C target foo/Test1.class \
-C src/resources abc.properties


# execute this jar
java -jar abc.jar


